package org.dtrd.modules.patient.entity.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.common.api.dto.BaseRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author xiao
 * @date 2022/5/31 2:32 PM
 */
@Data
@ApiModel(value = "扫码请求")
public class PatientScanRequest extends BaseRequest {

    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID",required = true)
    private Integer userId;

    @ApiModelProperty(value = "扫描结果数据串")
    private String rawData;

    @NotBlank(message = "扫描结果不能为空")
    @ApiModelProperty(value = "扫描结果-result",required = true)
    private String qrcodeUrl;

    @ApiModelProperty(value = "二维码类型", example = "1 医生二维码 ", hidden = true)
    private Integer codeType;


}
